@import '../../var';

.float-pane-dock {
  // z-index: 100;
  &:hover .float-pane-list {
    display: block;
  }
}

.float-pane-list {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background-color: $background;
  z-index: 10010;
  border-radius: 4px;
  // box-shadow: 0 0 3px lighten($primary, 20%);
  border: 1px solid lighten($primary, 5%);
  .scroll-view {
    min-height: 15rem;
    max-height: 20rem;
    margin-bottom: 0.25em;
  }
}

.float-pane-list-heading {
  size: $size-small;
  width: 11em;
  padding: 0.5em 0.75em;
  color: $text-light;
  // border-bottom: 1px solid $border;
}

.float-pane-list-item {
  size: $size-small;
  width: 11em;
  cursor: pointer;
  padding: 0.25em 0.75em;
  overflow: hidden;
  i {
    margin-right: 0.5em;
  }
  &:hover {
    color: $primary;
    background-color: darken($background, 10%);
  }
}

.pane.float-pane {
  -webkit-touch-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  // opacity: 0.85;
  min-width: 200px;
  position: absolute;
  border: 1px solid $border;
  .pane-heading {
    cursor: move;
  }
  &.is-active {
    // opacity: 1;
    box-shadow: 0 0 3px lighten($primary, 20%);
    border: 1px solid lighten($primary, 5%);
  }
}
